package com.itheima.stock.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @ClassName HttpClientConfig
 * @Author Carithly
 * @Description 定义访问http服务的配置类
 * @Date 2022/10/22 11:01
 * @Version 1.0.0
 * @Entity com.itheima.stock.config
 */
@Configuration
public class HttpClientConfig {
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
